package com.chixing.ih.module.task.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/9/25 22:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Order implements Serializable {
    @ApiModelProperty(value = "订单id", required = true)
    private Long orderId;

    @ApiModelProperty(value = "订单编号", required = true)
    private String orderNum;

    @ApiModelProperty(value = "发任务id", required = true)
    private Long sendTaskUserId;

    @ApiModelProperty(value = "接任务id", required = true)
    private Long receiveTaskUserId;

    @ApiModelProperty(value = "任务id", required = true)
    private Long taskId;

    @ApiModelProperty(value = "订单金额", required = true)
    private Double salary;

    @ApiModelProperty(value = "订单开始时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date orderBeginTime;

    @ApiModelProperty(value = "订单结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date orderEndTime;

    @ApiModelProperty(value = "订单状态", required = false)
    private Integer orderStatus;

    @ApiModelProperty(value = "逻辑删除", required = false)
    private Integer logicalDeletion;

    @ApiModelProperty(value = "创建时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "订单支付状态", required = false)
    private Integer paymentStatus;

    private String receiveName;
    private String receiveImageUrl;


}
